//---------------------------------------------------------------------------------
#ifndef __CCASE_H__
#define __CCASE_H__
//---------------------------------------------------------------------------------
#include <QPainter>
//---------------------------------------------------------------------------------
class CCase {
	public:
		typedef enum { ectVide, ectMur } ECaseType;
		
		CCase(int x, int y, ECaseType caseType) { this->x=x; this->y=y; caisse=emplacement=false; this->caseType=caseType; }
		ECaseType getCaseType(void) { return caseType; }
		int getX(void) { return x; }
		int getY(void) { return y; }
		bool hasCaisse(void) { return caisse; }
		void setHasCaisse(bool caisse) { this->caisse=caisse; }
		bool hasEmplacement(void) { return emplacement; }
		void setHasEmplacement(bool emplacement) { this->emplacement=emplacement; }
		void draw(QPainter *painter, int x, int y, int step, bool selected);
	private:
		int x;
		int y;
		bool caisse;
		bool emplacement;
		ECaseType caseType;
};
//---------------------------------------------------------------------------------
#endif //__CCASE_H__
//---------------------------------------------------------------------------------